home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part II.srd / Part II.srd.rsrc / PICT_21.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  138KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | earth | reckoner | sky | tree | windowpane
OCR: Chapter -More about objects 117 fine number of windows in the dictionary called Window1, Window2 and so on The best approach in this situation to create list of window objects that can expand and contract dynamically To avoid wasting storage, i is most appropriate to create the window objects on the heap when they are needed, and return the heap to the system when window closed Heap -based objects are actually based on subclass of Handle. called ObjHandle In this class we provide methods for creating and accessing heap objects. heap object can be created thus: Ob- jHandle anOb- jHdl someC1 ass newObj: anObjHdl Then to access the ob- ectobj:tanebjHelt hod returns r pointer to the object, and als locks the handle so that the obj ject won't be unceremoniously .moved while we are with Remember ...